package cn.aws360.boot.auth.starter.config;

import cn.aws360.boot.auth.api.pojo.properties.AuthProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author junnan
 */
@Configuration
@ComponentScan(basePackages = {"cn.aws360.boot.auth.**"})
public class AuthAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean(AuthProperties.class)
    public AuthProperties authProperties() {
        return new AuthProperties();
    }

}
